/* Autostop
*
* Copyright (c) Maciej Gajewski, Grzegorz Latarowski
* http://code.google.com/p/autostop-automaty-drogowe
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version. NO WARRANTY OF ANY KIND is expressed or implied.
 */
#ifndef SIMPLESERVER_H
#define SIMPLESERVER_H

// qt
#include <QThread>

/// Thread for test network server
class TestServer : public QThread
{
Q_OBJECT
public:
	TestServer( QObject *parent = 0 );
	virtual ~TestServer();

	/// set port
	void setPort( quint16 port ) { _port = port; }

	/// start thread
    virtual void run();

private:

	quint16		_port;		///<tcp port to listen on
};

#endif // SIMPLESERVER_H

// eof


